#include<iostream>

using namespace std;

unsigned char* bitmap = new unsigned char[128];

void bitset(int bit)
{
   int byte=0;
   int bitposition =0;

   byte = bit/8;

   bitposition = bit%8;

   cout<<byte<<endl;
   cout<<bitposition<<endl;

     

   bitmap[127-byte] |=1 <<(bitposition);

  /* 
  for(int k=0;k<128;k++)
	{
	  printf("%02x",bitmap[k]);
	} 

	*/  
}

int main()
{
	int x;
	cout<<"Enter bit position"<<endl;

	cin>>x;

	bitset(x);
   
    return 0;
}